rust-chunked-transfer
Encoder and decoder for HTTP chunked transfer coding. For more information about chunked transfer encoding:
Example
Decoding
use Decoder;
use Read;
let encoded = b"3\r\nhel\r\nb\r\nlo world!!!\r\n0\r\n\r\n";
let mut decoded = String new;
let mut decoder = new;
decoder.read_to_string;
assert_eq!;
Encoding
use Encoder;
use Write;
let mut decoded = "hello world";
let mut encoded: = vec!;
assert_eq!;
Authors
License
Licensed under either of:
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.